package com.dongchedi.mapper;

import com.dongchedi.entity.ProductInfo;
import com.dongchedi.entity.ProductPicInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author leibidong
 * @description 商品详情mapper对象
 * @date 2021/6/23
 */
@Component
@Mapper
public interface ProductInfoMapper {
    public List<ProductInfo> hotQuery();
    public ProductInfo queryById(Integer productId,Integer customerId);
    public Integer initProductInfo(ProductInfo productInfo);
    public Integer searchProductId(Integer productId,Integer customerId);
    public Integer updateProductStatusToOne(Integer customerId,Integer productId,Integer collectStatus);
    public Integer updateProductStatusToZero(Integer customerId,Integer productId,Integer collectStatus);
    public Integer searchMainProductId(Integer customerId,Integer productId);
}
